#定义回复类
from typing import TypeVar, Generic, Optional
from pydantic import BaseModel, ConfigDict
from pydantic.alias_generators import to_camel

T = TypeVar('T')
class BaseResponse(BaseModel,Generic[T]):
    code: int = 200
    message: str = "success"
    data: Optional[T] = None


